package com.company.genealogy.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.genealogy.web.entity.FamilyNews;

import java.util.List;
import java.util.Map;

public interface FamilyNewsService extends IService<FamilyNews> {
    boolean hasUserLiked(Long newsId, Long userId);
    void likeNews(Long newsId, Long userId);
    void unlikeNews(Long newsId, Long userId);
    List<Map<String, Object>> getNewsLikes(List<Long> newsIds);
    List<Map<String, Object>> getUserLikes(Long userId, List<Long> newsIds);
} 